﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.Record;
using TyMES.Model;

namespace TyMES.ViewModel.Record.StationLogRecordVMs
{
    public partial class StationLogRecordTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._StationLogRecord._Date_Time")]
        public ExcelPropety Date_Time_Excel = ExcelPropety.CreateProperty<StationLogRecord>(x => x.Date_Time, true);
        [Display(Name = "_Model._StationLogRecord._LineCode")]
        public ExcelPropety LineCode_Excel = ExcelPropety.CreateProperty<StationLogRecord>(x => x.LineCode);
        [Display(Name = "_Model._StationLogRecord._StationCode")]
        public ExcelPropety StationCode_Excel = ExcelPropety.CreateProperty<StationLogRecord>(x => x.StationCode);
        [Display(Name = "_Model._StationLogRecord._Log")]
        public ExcelPropety Log_Excel = ExcelPropety.CreateProperty<StationLogRecord>(x => x.Log);
        [Display(Name = "_Model._StationLogRecord._LogType")]
        public ExcelPropety LogType_Excel = ExcelPropety.CreateProperty<StationLogRecord>(x => x.LogType);
        [Display(Name = "_Model._StationLogRecord._CreateTime")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<StationLogRecord>(x => x.CreateTime, true);
        [Display(Name = "_Model._StationLogRecord._UpdateTime")]
        public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<StationLogRecord>(x => x.UpdateTime, true);
        [Display(Name = "_Model._StationLogRecord._CreateBy")]
        public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<StationLogRecord>(x => x.CreateBy);
        [Display(Name = "_Model._StationLogRecord._UpdateBy")]
        public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<StationLogRecord>(x => x.UpdateBy);

	    protected override void InitVM()
        {
            
        }

    }

    public class StationLogRecordImportVM : BaseImportVM<StationLogRecordTemplateVM, StationLogRecord>
    {
            //import

    }

}